﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="clientSettings"
    targetNamespace="Sherwood.SignOn.Client"
    elementFormDefault="qualified"
    xmlns="Sherwood.SignOn.Client"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
    <xs:element name="clientSettings">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="client">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="code" type="xs:string" />
                            <xs:element name="rsaPrivateKey" type="xs:string" />
                            <xs:element name="rsaPublicKey" type="xs:string" />
                            <xs:element name="signInUrl" type="xs:string" />
                            <xs:element name="signOutUrl" type="xs:string" />
                            <xs:element name="cookieDomains" minOccurs="1" maxOccurs="1">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="cookieDomain" minOccurs="0" maxOccurs="unbounded" >
                                            <xs:complexType>
                                                <xs:attribute name="hostPattern" type="xs:string"></xs:attribute>
                                                <xs:attribute name="cookieDomain" type="xs:string"></xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="server">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="ticketValidityInSeconds" type="xs:integer" />
                            <xs:element name="baseUrl" type="xs:string" />
                            <xs:element name="rsaPublicKey" type="xs:string" />
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="sessionRepository">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="connectionString" type="xs:string" />
                            <xs:element name="sessionTimeoutInMinutes" type="xs:integer" />
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="urlFilter">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="configurationFile" type="xs:string" />
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
